<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>家居商城-注册</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="res/layui/css/layui.css">
  <link rel="stylesheet" href="res/static/css/index.css">
  <link rel="stylesheet" href="res/static/css/login.css" />
  <script type="text/javascript" src="res/static/js/jquery-3.3.1.min.js" ></script>
  <script type="text/javascript" src="res/static/js/vue.min.js" ></script>
  <script type="text/javascript" src="res/static/js/host.js" ></script>
  <script type="text/javascript" src="res/static/js/axios-0.18.0.min.js" ></script>
</head>
<body>

<div class="house-header">
  <div class="layui-container">
    <div class="house-nav">
      <span class="layui-breadcrumb" lay-separator="|">
        <a href="login.html">登录</a>
        <a href="register.html">注册</a>
        <a href="">我的订单</a>
        <a href="">在线客服</a>
      </span>
      <span class="layui-breadcrumb house-breadcrumb-icon" lay-separator=" ">
        <a id="search"><i class="layui-icon layui-icon-house-find"></i></a>
        <a href="login.html"><i class="layui-icon layui-icon-username"></i></a>
        <a href="usershop.html"><i class="layui-icon layui-icon-house-shop"></i></a>
      </span>
    </div> 
    <div class="house-banner layui-form">
      <a class="banner" href="index.html">
        <img src="res/static/img/banner.png" alt="家居商城">
      </a>
      <div class="layui-input-inline">
        <input type="text" placeholder="搜索好物" class="layui-input"><i class="layui-icon layui-icon-house-find"></i>
      </div>
      <a class="shop" href="usershop.html"><i class="layui-icon layui-icon-house-shop"></i><span class="layui-badge">1</span></a>
    </div>
    <ul class="layui-nav close">
      <li class="layui-nav-item layui-this"><a href="index.html">首页</a></li>
      <li class="layui-nav-item"><a href="list.html">居家用品</a></li>
      <li class="layui-nav-item"><a href="list.html">小家电</a></li>
      <li class="layui-nav-item"><a href="list.html">洗护</a></li>
      <li class="layui-nav-item"><a href="list.html">厨具</a></li>
      <li class="layui-nav-item"><a href="list.html">日用品</a></li>
    </ul>
    <button id="switch">
      <span></span><span class="second"></span><span class="third"></span>
    </button>
  </div>
</div>

<div class="layui-fulid lk_register" id="house-login">
	
  <div class="layui-form">
    <p>注册</p>
    <div class="lk_register_step">
    	<div class="lk_step_icon">
    		<embed :src="icon_step_1" type="image/svg+xml" />
    		<embed :src="icon_arrows_1" type="image/svg+xml" />
    		<embed :src="icon_step_2" type="image/svg+xml" />
    		<embed :src="icon_arrows_2" type="image/svg+xml" />
    		<embed :src="icon_step_3" type="image/svg+xml" />
    	</div>
    	<div class="lk_step_font">
    		<span :style="{color: step_font_1}">验证手机</span>
    		<span :style="{color: step_font_2}">填写信息</span>
    		<span :style="{color: step_font_3}">注册成功</span>
    	</div>
    </div>
    
    <div v-if="step == 1"><!-- 步骤1 -->
	    <div class="layui-input-block login">
	      <i class="layui-icon layui-icon-house-mobile"></i>
	      <input type="text" v-model="mobile" @blur="check_phone" name="mobile" placeholder="请输入手机号" class="layui-input" id="mobile">
	    </div>
	    <div class="layui-input-block getCode">
	      <input type="text" v-model="image_code" @blur="check_image_code" name="image_code" placeholder="请输入图片验证码" class="layui-input" id="image_code">
	      <img :src="image_code_url" @click="generate_image_code" alt="图形验证码" class="lk_pic_code" v-cloak>
	    </div>
	    <div class="layui-input-block getCode">
	      <input type="text" v-model="sms_code" @blur="check_sms_code" name="msg_code" placeholder="请输入短信验证码" class="layui-input" id="sms_code">
	      <button class="layui-btn" @click="send_sms_code" v-cloak>{{ sms_code_tip }}</button>
	    </div>
	    <button class="layui-btn" id="" @click="check_step1" :style="{background:step1_next}">下一步</button>
	    <div class="lk_login_register">
	    	已有账号？<a href="login.html">请登录></a>
	    </div>
    </div>
    
    <div v-if="step == 2"><!-- 步骤2 -->
    	<div class="layui-input-block">
	      <input type="text" required lay-verify="required" placeholder="您的账户名和登录名" class="layui-input">
	    </div>
	    <div class="layui-input-block">
	      <input type="text" required lay-verify="required" placeholder="您的密码" class="layui-input">
	    </div>
	    <div class="layui-input-block">
	      <input type="text" required lay-verify="required" placeholder="再次输入您的密码" class="layui-input">
	    </div>
	    <button class="layui-btn" lay-submit lay-filter="step2_submit" type="submit">立即注册</button>
	    <div class="lk_login_register">
	    	已有账号？<a href="login.html">请登录></a>
	    </div>
    </div>
    
    <div v-if="step == 3"><!-- 步骤3 -->
    	<div class="lk_is_ok">
	    	<embed src="res/static/images/is_ok.svg" type="image/svg+xml" />
	    	<!--<span>注册完成</span>-->
	    </div>
	    <button class="layui-btn" id="step3_submit">立即跳转（<span>3</span>）</button>
    </div>
    
  </div>
</div>

<div class="house-footer">
  <div class="layui-container">
    <div class="intro">
      <span class="first"><i class="layui-icon layui-icon-house-shield"></i>7天无理由退换货</span>
      <span class="second"><i class="layui-icon layui-icon-house-car"></i>满99元全场包邮</span>
      <span class="third"><i class="layui-icon layui-icon-house-diamond"></i>100%品质保证</span>
      <span class="last"><i class="layui-icon layui-icon-house-tel"></i>客服400-2888-966</span>
    </div>
    <div class="about">
      <span class="layui-breadcrumb" lay-separator="|">
        <a href="about.html">关于我们</a>
        <a href="about.html">帮助中心</a>
        <a href="about.html">售后服务</a>
        <a href="about.html">配送服务</a>
        <a href="about.html">关于货源</a>
      </span>
      <p>家居商城版权所有 &copy; 2012-2020</p>
    </div>   
  </div>
</div>

<script src="res/layui/layui.js"></script>
<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
<!--[if lt IE 9]>
  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script>
  layui.config({
    base: 'res/static/js/' 
  }).use('house');
</script>
<script type="text/javascript" src="res/static/js/register.js" ></script>
</body>
</html>